package my.example;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 通用请求体，命名特意和普通字段区分
 * @author zhouliang
 *
 */
@ApiModel(value="swagger注解测试")
public class ReqSwaggerDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 用户id
     */
    @NotBlank
    @ApiModelProperty(value="用户id",example="111",required=true)
    private String userId;
    
    /**
     * 用户姓名
     */
    @NotBlank
    @ApiModelProperty(value="用户姓名",example="WWWWW",required=true)
    private String userName;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
